import request from '@/utils/request'

export function getMarketOrderListApi(data) {
  return request({
    url: '/order/pageInfo',
    method: 'post',
    data
  })
}

export function getCouponListApi(data) {
  return request({
    url: '/coupon/pageInfo',
    method: 'post',
    data
  })
}

export function saveCouponApi(data) {
  return request({
    url: '/coupon/save',
    method: 'post',
    data
  })
}

export function changeStateApi(data) {
  return request({
    url: '/coupon/changeState',
    method: 'post',
    data
  })
}